package com.usian.service.impl;

import com.usian.enlist.Enlist;
import com.usian.mapper.EnlistMapper;
import com.usian.service.EnlistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnlistServiceImpl implements EnlistService {
    @Autowired
    private EnlistMapper enlistMapper;
    @Override
    public List<Enlist> findAll() {
        return enlistMapper.findAll();
    }

    @Override
    public int add(Enlist enlist) {
        return enlistMapper.add(enlist);
    }
}
